﻿@model Coleotrack.Models.RegisterViewModel
@using Coleotrack.Resources

@{
    Layout = "~/Views/Shared/_NonUserArea.cshtml";
	ViewBag.Title = @labels.Register;
}

@section Head {

    <link href="@Url.Content("~/Content/Register.css")" rel="stylesheet" type="text/css" />

}


    <h1>@labels.Register</h1>

    @using (Html.BeginForm()) {
        @Html.ValidationSummary(false, labels.ErrorsOccured)

        <br />

        <div class="register-label">
            @Html.LabelFor(model => model.Username)
        </div>
        <div class="register-input">
            @Html.TextBoxFor(model => model.Username)
        </div>

        <br />
            
        <div class="register-label">
            @Html.LabelFor(model => model.Email)
        </div>
        <div class="register-input">
            @Html.TextBoxFor(model => model.Email)
        </div>

        <br />
            
        <div class="register-label">
            @Html.LabelFor(model => model.EmailConfirmation)
        </div>
        <div class="register-input">
            @Html.TextBoxFor(model => model.EmailConfirmation)
        </div>

        <br />
            
        <div class="register-label">
            @Html.LabelFor(model => model.Password)
        </div>
        <div class="register-input">
            @Html.PasswordFor(model => model.Password)
        </div>

        <br />
            
        <div class="register-label">
            @Html.LabelFor(model => model.PasswordConfirmation)
        </div>
        <div class="register-input">
            @Html.PasswordFor(model => model.PasswordConfirmation)
        </div>

        <br />
        
        <div class="register-submit">
            <input type="submit" value="@labels.Create" />
        </div>
     } 


@section Footer {

    <p>
        @Html.ActionLink(labels.Sign_In_With_Existing_Account, "LogOn", "Account")
    </p>

}
